<template>
    <view>
        <web-view :src="url"></web-view>
    </view>
</template>

<script>
    export default {
        name: "webView",
		data() {
			return {
				url: null
			}
		},
		onLoad(options) {
			let wechatInfo = uni.getStorageSync('wechatInfo');
			if (wechatInfo) {
				this.url = options.url + '?wx=' + wechatInfo.wx + '&pic=' + wechatInfo.pic;
				uni.removeStorageSync('wechatInfo');
			} else {
				this.url = options.url;
			}
			
			// #ifdef MP-WEIXIN
			if (options.url === 'https://taoke.daihuo.com/group_service.html') {
				uni.reportAnalytics('enter_zaixiankf');
			}
			if (options.url === 'https://taoke.daihuo.com/group_rules.html') {
				uni.reportAnalytics('enter_pintuangz');
			}
			// #endif
		},
    }
</script>

<style lang="scss" scoped>

</style>